import struct
from _ast import Bytes
from io import BytesIO

data = ('fedc0125ab4ea3253200000005030030000000'
'ff0000010700000354ffffff9b0000029200000001'
'0000001500018bcb000001000000000000000000'
'0000000000')

data = bytes.fromhex(data)



b = BytesIO(data)

c = b.read(16)

d = b.read(4)
e = int.from_bytes(d, byteorder='big', signed=False)
print(e)

print(data,type(data))


dict = {'1':1}

print(str(dict))
#将a变为二进制

buf1 = 255
bin_buf1 = struct.pack('i', buf1)
print(bin_buf1)